package com.xiaomazi.edu.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
    * 课程
    */
@ApiModel(value="章节实体类")
@Data
@TableName(value = "edu_chapter")
public class Chapter implements Serializable {
    /**
     * 章节ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="章节ID")
    private String id;

    /**
     * 课程ID
     */
    @TableField(value = "course_id")
    @ApiModelProperty(value="课程ID")
    private String courseId;

    /**
     * 章节名称
     */
    @TableField(value = "title")
    @ApiModelProperty(value="章节名称")
    private String title;

    /**
     * 显示排序
     */
    @TableField(value = "sort")
    @ApiModelProperty(value="显示排序")
    private Integer sort;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建时间")
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value="更新时间")
    private Date gmtModified;

    private static final long serialVersionUID = 1L;
}